<?php /* Smarty version Smarty-3.1.21, created on 2015-06-01 08:43:01
         compiled from "D:\mywamp\www\2015php\wenda\Index\View\Common\head.html" */ ?>
<?php /*%%SmartyHeaderCode:21855569c6f0a6d2a9-34931786%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '718fb61b3f291ae32eed9e8401b516951f7762cb' => 
    array (
      0 => 'D:\\mywamp\\www\\2015php\\wenda\\Index\\View\\Common\\head.html',
      1 => 1433119378,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '21855569c6f0a6d2a9-34931786',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.21',
  'unifunc' => 'content_5569c6f0c26994_04459948',
  'variables' => 
  array (
    'topcate' => 0,
    'v' => 0,
    'count' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5569c6f0c26994_04459948')) {function content_5569c6f0c26994_04459948($_smarty_tpl) {?>	<?php echo '<script'; ?>
>
		var APP = '<?php echo @constant('__APP__');?>
';
		var PUBLIC = '<?php echo @constant('__PUBLIC__');?>
';
	<?php echo '</script'; ?>
>
	<link rel="stylesheet" href="<?php echo @constant('__PUBLIC__');?>
/Css/common.css" />
	<?php echo '<script'; ?>
 type="text/javascript" src='<?php echo @constant('__PUBLIC__');?>
/Js/jquery-1.7.2.min.js'><?php echo '</script'; ?>
>
	<?php echo '<script'; ?>
 type="text/javascript" src='<?php echo @constant('__PUBLIC__');?>
/Js/top-bar.js'><?php echo '</script'; ?>
>
	<?php echo '<script'; ?>
 type="text/javascript" src="<?php echo @constant('__PUBLIC__');?>
/Js/validate.js"><?php echo '</script'; ?>
>
	<?php echo '<script'; ?>
 type="text/javascript" src="<?php echo @constant('__PUBLIC__');?>
/Js/search.js"><?php echo '</script'; ?>
>
	<style>
		#search_box{
			display:none;font-size:18px;text-align:left;padding:10px;position:absolute;top:42px;left:218px;width:408px;border:1px solid #3EAF0E;z-index:500;background:white;
		}
		#search_box li{
			cursor: default;
		}
		#search_box li:hover{
			border-bottom:1px dashed black;
		}
		#search_box span{
			float:right;font-size:14px;color:#999;font-style: italic;"
		}
	</style>
</head>
<body>
	<!-- top -->
	<div id='top-fixed' style="overflow:visible">
	<div id='top-bar'>
		<ul class="top-bar-left fl">
			<!--<li><a href="http://www.houdunwang.com" target='_blank'>后盾顶尖后盾PHP培训</a></li>
			<li><a href="http://www.houdunwang.com" target='_blank'>后盾论坛</a></li>-->
		</ul>
			<ul class='top-bar-right fr'> 
				<li class='userinfo' style="display:none">
					<a href="" class='uname'></a>
				</li>
				<li style='color:#eaeaf1;display:none;'>|</li>
				<li class="out" style="display:none"><a href="<?php echo @constant('__APP__');?>
?c=login&a=out">退出</a></li> 
			<?php if (isset($_SESSION['username'])) {?>
	 			<li class='userinfo'>
					欢迎 <a href="<?php echo @constant('__APP__');?>
?c=home&uid=<?php echo $_SESSION['uid'];?>
" class='uname' style="color:red"><?php echo $_SESSION['username'];?>
</a> 回来
				</li>
				<li style='color:#eaeaf1'>|</li>
				<li class="out"><a href="<?php echo @constant('__APP__');?>
?c=login&a=out">退出</a></li> 
			<?php } else { ?>
			<li><a href="" class='login'>登录</a></li>
			<li style='color:#eaeaf1'>|</li>
			<li><a href="" class='register'>注册</a></li>
			<?php }?>
		</ul>
	</div>
<!-- 提问搜索框 -->
	<div id='search' >
		<div class='logo'><a href="<?php echo @constant('__APP__');?>
" class='logo'></a></div>
		<form autocomplete="off" action="<?php echo @constant('__APP__');?>
?c=search" method='post' style='position:relative;'>
			<input type="text" name='words' autocomplete="false" class='sech-cons'/>
			<div id="search_box">
				<ul>

				</ul>
			</div>
			<input type="submit" class='sech-btn'/>
		</form>
		<a href="<?php echo @constant('__APP__');?>
?c=ask" class='ask-btn'></a>
	</div>
<!-- 提问搜索框结束 -->
</div>
<div style='height:110px'></div>
<!----------导航条---------->
<div id='nav'>
	<ul class='list'>
		<li class='nav-sel'><a href="<?php echo @constant('__APP__');?>
" class='home'>问答首页</a></li>
		<li class='nav-sel ask-cate'>
			<a href="<?php echo @constant('__APP__');?>
?c=category&status=0" class='ask-list'><span>问题库</span><i></i></a>
			<ul class='hidden'>
				<?php  $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['v']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['topcate']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value) {
$_smarty_tpl->tpl_vars['v']->_loop = true;
?>
				<li>
					<a href="<?php echo @constant('__APP__');?>
?c=category&cid=<?php echo $_smarty_tpl->tpl_vars['v']->value['cid'];?>
&status=0"><?php echo $_smarty_tpl->tpl_vars['v']->value['title'];?>
</a>
				</li>
				<?php } ?>
			</ul>
		</li>
	</ul>
	<p class='total'>累计提问：<?php echo $_smarty_tpl->tpl_vars['count']->value;?>
</p>
</div>

	<!----------注册框---------->
	<div id='register' class='hidden'>
		<div class='reg-title'>
			<p>欢迎注册后盾问答</p>
			<a href="" title='关闭' class='close-window'></a>
		</div>
		<div id='reg-wrap'>
			<div class='reg-left'>
				<ul>
					<li><span>账号注册</span></li>
				</ul>
				<div class='reg-l-bottom'>
					已有账号，<a href="" id='login-now'>马上登录</a>
				</div>
			</div>
			<div class='reg-right'>
				<form action="<?php echo @constant('__APP__');?>
?c=register&a=reg" method='post' name='register'>
					<ul>
						<li>
							<label for="reg-uname">用户名</label>
							<input type="text" name='username' id='reg-uname'/>
							<span>2-14个字符：字母、数字或中文</span>
						</li>
						<li>
							<label for="reg-pwd">密码</label>
							<input type="password" name='pwd' id='reg-pwd'/>
							<span>6-20个字符:字母、数字或下划线 _</span>
						</li>
						<li>
							<label for="reg-pwded">确认密码</label>
							<input type="password" name='pwded' id='reg-pwded'/>
							<span>请再次输入密码</span>
						</li>
						<li>
							<label for="reg-verify">验证码</label>
							<input type="text" name='verify' id='reg-verify'/>
							<img src="<?php echo @constant('__APP__');?>
?c=register&a=code" width='99' height='35' alt="验证码" id='verify-img'/>
							<span>请输入图中的字母或数字，不区分大小写</span>
						</li>
						<li class='submit'>
							<input type="submit" value='立即注册'/>
						</li>
					</ul>
				</form>
			</div>
		</div>
	</div>

	<!----------登录框---------->	
	<div id='login' class='hidden'>
		<div class='login-title'>
			<p>欢迎您登录后盾问答</p>
			<a href="" title='关闭' class='close-window'></a>
		</div>
		<div class='login-form'>
			<span id='login-msg'></span>
			<!-- 登录FORM -->
			<form action="javascript:;" method='post' name='login'>
				<ul>
					<li>
						<label for="login-acc">账号</label>
						<input type="text" name='account' class='input' id='login-acc'/>
					</li>
					<li>
						<label for="login-pwd">密码</label>
						<input type="password" name='pwd' class='input' id='login-pwd'/>
					</li>
					<li class='login-auto'>
						<label for="auto-login">
							<input type="checkbox" checked="checked" value="1" name='auto'  id='auto-login'/>&nbsp;下一次自动登录
						</label>
						<a href="" id='regis-now'>注册新账号</a>
					</li>
					<li>
						<input type="submit" value='' id='login-btn'/>
					</li>
				</ul>
			</form>
		</div>
	</div>

<!--背景遮罩--><div id='background' class='hidden'></div><?php }} ?>
